/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Yuman</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15460 (C-0-T14914-S14915-S14916-S15460-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianYuman()
 * @model extendedMetaData="name='RaceAmericanIndianYuman'"
 * @generated
 */
public enum RaceAmericanIndianYuman implements Enumerator {
	/**
	 * The '<em><b>17244</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17244_VALUE
	 * @generated
	 * @ordered
	 */
	_17244(0, "_17244", "1724-4"),

	/**
	 * The '<em><b>17251</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17251_VALUE
	 * @generated
	 * @ordered
	 */
	_17251(1, "_17251", "1725-1"),

	/**
	 * The '<em><b>17269</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17269_VALUE
	 * @generated
	 * @ordered
	 */
	_17269(2, "_17269", "1726-9"),

	/**
	 * The '<em><b>17277</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17277_VALUE
	 * @generated
	 * @ordered
	 */
	_17277(3, "_17277", "1727-7"),

	/**
	 * The '<em><b>17285</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17285_VALUE
	 * @generated
	 * @ordered
	 */
	_17285(4, "_17285", "1728-5"),

	/**
	 * The '<em><b>17293</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17293_VALUE
	 * @generated
	 * @ordered
	 */
	_17293(5, "_17293", "1729-3"),

	/**
	 * The '<em><b>17301</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17301_VALUE
	 * @generated
	 * @ordered
	 */
	_17301(6, "_17301", "1730-1"),

	/**
	 * The '<em><b>17319</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_17319_VALUE
	 * @generated
	 * @ordered
	 */
	_17319(7, "_17319", "1731-9");

	/**
	 * The '<em><b>17244</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17244</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17244
	 * @model literal="1724-4"
	 * @generated
	 * @ordered
	 */
	public static final int _17244_VALUE = 0;

	/**
	 * The '<em><b>17251</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17251</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17251
	 * @model literal="1725-1"
	 * @generated
	 * @ordered
	 */
	public static final int _17251_VALUE = 1;

	/**
	 * The '<em><b>17269</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17269</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17269
	 * @model literal="1726-9"
	 * @generated
	 * @ordered
	 */
	public static final int _17269_VALUE = 2;

	/**
	 * The '<em><b>17277</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17277</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17277
	 * @model literal="1727-7"
	 * @generated
	 * @ordered
	 */
	public static final int _17277_VALUE = 3;

	/**
	 * The '<em><b>17285</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17285</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17285
	 * @model literal="1728-5"
	 * @generated
	 * @ordered
	 */
	public static final int _17285_VALUE = 4;

	/**
	 * The '<em><b>17293</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17293</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17293
	 * @model literal="1729-3"
	 * @generated
	 * @ordered
	 */
	public static final int _17293_VALUE = 5;

	/**
	 * The '<em><b>17301</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17301</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17301
	 * @model literal="1730-1"
	 * @generated
	 * @ordered
	 */
	public static final int _17301_VALUE = 6;

	/**
	 * The '<em><b>17319</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>17319</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_17319
	 * @model literal="1731-9"
	 * @generated
	 * @ordered
	 */
	public static final int _17319_VALUE = 7;

	/**
	 * An array of all the '<em><b>Race American Indian Yuman</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianYuman[] VALUES_ARRAY =
		new RaceAmericanIndianYuman[] {
			_17244,
			_17251,
			_17269,
			_17277,
			_17285,
			_17293,
			_17301,
			_17319,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Yuman</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianYuman> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Yuman</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianYuman get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianYuman result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Yuman</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianYuman getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianYuman result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Yuman</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianYuman get(int value) {
		switch (value) {
			case _17244_VALUE: return _17244;
			case _17251_VALUE: return _17251;
			case _17269_VALUE: return _17269;
			case _17277_VALUE: return _17277;
			case _17285_VALUE: return _17285;
			case _17293_VALUE: return _17293;
			case _17301_VALUE: return _17301;
			case _17319_VALUE: return _17319;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianYuman(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianYuman
